package com.yanzhu.service;

import com.yanzhu.service.model.Message;
import com.yanzhu.service.model.Upvote;

import java.util.List;

/**
 * @Author: 方炎柱
 * @Description:
 * @Date: Created in 21:36 2018/1/21
 * @Modified:
 */
public interface LikeService {
    int insert(Upvote like);

    void likeVideo(Upvote like, int like_sum, float like_fee, Message message) throws Exception;

    List<Upvote> queryLikeList(long uid);

    int deleteLikeById(long id);

    int deleteLikeAll(long uid);

    int queryVideoLikeCount(long vid);

    int queryLikeCount(long vid, long uid);


    int queryVideoLikeUserCount(long vid);

    List<String> queryVideoLikeUserAvatar(long vid, int size);

}
